﻿namespace WMS6.Web.InboundDetailServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="PutawayDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class PutawayDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string FinalLocField;
        [OptionalField]
        private string FromLocField;
        [OptionalField]
        private string FromLpnIDField;
        [OptionalField]
        private string LotIDField;
        [OptionalField]
        private string LpnIDField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string PackIDField;
        [OptionalField]
        private decimal QtyField;
        [OptionalField]
        private string ReceiptIDField;
        [OptionalField]
        private string ReceiptLineIDField;
        [OptionalField]
        private string SkuDescrField;
        [OptionalField]
        private string SkuIDField;
        [OptionalField]
        private string StatusDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private string SuggestLocField;
        [OptionalField]
        private string TaskDetailIDField;
        [OptionalField]
        private string UomIDField;
        [OptionalField]
        private string UpdatedByField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string FinalLoc
        {
            get
            {
                return this.FinalLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FinalLocField, value))
                {
                    this.FinalLocField = value;
                    this.RaisePropertyChanged("FinalLoc");
                }
            }
        }

        [DataMember]
        public string FromLoc
        {
            get
            {
                return this.FromLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromLocField, value))
                {
                    this.FromLocField = value;
                    this.RaisePropertyChanged("FromLoc");
                }
            }
        }

        [DataMember]
        public string FromLpnID
        {
            get
            {
                return this.FromLpnIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromLpnIDField, value))
                {
                    this.FromLpnIDField = value;
                    this.RaisePropertyChanged("FromLpnID");
                }
            }
        }

        [DataMember]
        public string LotID
        {
            get
            {
                return this.LotIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotIDField, value))
                {
                    this.LotIDField = value;
                    this.RaisePropertyChanged("LotID");
                }
            }
        }

        [DataMember]
        public string LpnID
        {
            get
            {
                return this.LpnIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LpnIDField, value))
                {
                    this.LpnIDField = value;
                    this.RaisePropertyChanged("LpnID");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string PackID
        {
            get
            {
                return this.PackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PackIDField, value))
                {
                    this.PackIDField = value;
                    this.RaisePropertyChanged("PackID");
                }
            }
        }

        [DataMember]
        public decimal Qty
        {
            get
            {
                return this.QtyField;
            }
            set
            {
                if (!this.QtyField.Equals(value))
                {
                    this.QtyField = value;
                    this.RaisePropertyChanged("Qty");
                }
            }
        }

        [DataMember]
        public string ReceiptID
        {
            get
            {
                return this.ReceiptIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReceiptIDField, value))
                {
                    this.ReceiptIDField = value;
                    this.RaisePropertyChanged("ReceiptID");
                }
            }
        }

        [DataMember]
        public string ReceiptLineID
        {
            get
            {
                return this.ReceiptLineIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReceiptLineIDField, value))
                {
                    this.ReceiptLineIDField = value;
                    this.RaisePropertyChanged("ReceiptLineID");
                }
            }
        }

        [DataMember]
        public string SkuDescr
        {
            get
            {
                return this.SkuDescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuDescrField, value))
                {
                    this.SkuDescrField = value;
                    this.RaisePropertyChanged("SkuDescr");
                }
            }
        }

        [DataMember]
        public string SkuID
        {
            get
            {
                return this.SkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuIDField, value))
                {
                    this.SkuIDField = value;
                    this.RaisePropertyChanged("SkuID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string StatusD
        {
            get
            {
                return this.StatusDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusDField, value))
                {
                    this.StatusDField = value;
                    this.RaisePropertyChanged("StatusD");
                }
            }
        }

        [DataMember]
        public string SuggestLoc
        {
            get
            {
                return this.SuggestLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SuggestLocField, value))
                {
                    this.SuggestLocField = value;
                    this.RaisePropertyChanged("SuggestLoc");
                }
            }
        }

        [DataMember]
        public string TaskDetailID
        {
            get
            {
                return this.TaskDetailIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TaskDetailIDField, value))
                {
                    this.TaskDetailIDField = value;
                    this.RaisePropertyChanged("TaskDetailID");
                }
            }
        }

        [DataMember]
        public string UomID
        {
            get
            {
                return this.UomIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UomIDField, value))
                {
                    this.UomIDField = value;
                    this.RaisePropertyChanged("UomID");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }
    }
}

